const mongoose = require('mongoose');

const StyleSchema = new mongoose.Schema(
  {
    name: { type: String, required: true },
    style: { type: String, required: true , unique: true},
    pass: { type: Boolean , default: true },
  },
  { timestamps: true }
)

StyleSchema.methods.toString = function () {
  return this.name
}

mongoose.model('Styles', StyleSchema)
